:root {
  --primary-color: rgb(255, 62, 0);
  --on-primary-color: #fffff9;
  --primary-color-hover: rgb(255, 113, 51);
  --error-color: #ff3a43;
  --primary-background: #111111;
  --primary-font-color: #fffff0;
  --primary-font-color-hover: #bfbfb0;
  --header-background: #222222;
  --header-background-hover: #323232;
  --example-background: var(--header-background);
  --link-color: #00a8f4;
  --link-color-hover: #3cc2ff;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, Segoe UI,
    Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--primary-font-color);
  background: var(--primary-background);
  font-size: 1.1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cabin', sans-serif;
  margin: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 1.5rem 0;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.8rem;
}

section {
  margin: 1rem;
  margin-top: 2rem;
}

a {
  color: var(--primary-font-color);
  text-decoration: none;
  transition: color 100ms;
}

a:hover {
  color: var(--primary-font-color-hover);
}

code {
  font-family: inconsolata, monospace;
  font-size: calc(1em - 2px);
  color: var(--primary-font-color);
  background-color: var(--header-background);
  padding: 0.2em 0.4em;
  border-radius: 2px;
}

input[type='text'],
input[type='email'],
input[type='password'],
[contenteditable='true'],
textarea {
  font-size: 1em;
  border: 1px solid #aaa;
  border-radius: 10px;
  padding: 0.3rem 1rem;
  background: var(--on-primary-color);
  height: 3rem;
  width: 18rem;
  color: black;
}

input[aria-invalid='true'],
[contenteditable][aria-invalid='true'] {
  border: 2px solid var(--error-color);
}

fieldset {
  width: 400px;
  border: 2px solid var(--primary-color);
  display: block;
  font-size: 1.2em;
  background: var(--example-background);
  padding: 2rem;
  border-radius: 10px 30px;
}

button {
  margin-top: 0.7em;
  font-size: 0.8em;
  font-weight: 700;
  padding: 0.7em;
  background: var(--primary-color);
  border-radius: 10px;
  border: none;
  color: var(--on-primary-color);
  transition: transform 0.1s;
}

button:not([aria-disabled='true']):hover {
  cursor: pointer;
  background: var(--primary-color-hover);
}

button:not([aria-disabled='true']):active {
  transform: scale(0.9);
}

button[aria-disabled='true'] {
  background: var(--primary-color-hover);
  cursor: not-allowed;
}

form ul {
  color: var(--error-color);
}

label {
  display: block;
}

li {
  list-style: disc inside;
}
